package cn.ad.model;

import cn.ad.enumration.CampaignStatus;
import cn.ad.enumration.FeeType;
import cn.ad.entity.Campaign;
import org.apache.ibatis.type.Alias;

/**
 * 定义数据库查询返回的订单对象模型
 * 
 * @author yujuan.zhang
 * @from 2016-06-15
 * @since V1.0
 *
 */
@Alias("campaignModel")
public class CampaignModel extends Campaign {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5781229619157425457L;

	/**
	 * 订单所属广告主名称 - 查询订单列表时，同时返回订单所属广告主的名字
	 */
	private String advertiserName;

	/**
	 * 订单状态名称，根据投放时间确定
	 */
	private String statusName;

	/**
	 * KPI 类型名称 CPC CPM
	 */
	private String feeTypeName;

	public String getAdvertiserName() {
		return advertiserName;
	}

	public void setAdvertiserName(String advertiserName) {
		this.advertiserName = advertiserName;
	}

	public String getStatusName() {
		return CampaignStatus.forValue(this.getStatus());
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getFeeTypeName() {
		return this.getFeeType()==null?null:FeeType.forValue(this.getFeeType());
	}

	public void setFeeTypeName(String feeTypeName) {
		this.feeTypeName = feeTypeName;
	}

}
